package com.gmp.rooms.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gmp.common.annotation.Excel;
import com.gmp.common.core.domain.BaseEntity;
import lombok.Getter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 设施管理对象 facilities
 *
 * @author Koi
 * @date 2025-07-28
 */
@Getter
@TableName(resultMap = "com.gmp.rooms.mapper.FacilitiesMapper.FacilitiesResult")
public class Facilities extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 设施编号
     */
    @Excel(name = "设施编号")
    private String facilityCode;

    /**
     * 设施名称
     */
    @Excel(name = "设施名称")
    private String facilityName;

    /**
     * 设施类型
     */
    @Excel(name = "设施类型")
    private String facilityType;

    /**
     * 型号规格
     */
    @Excel(name = "型号规格")
    private String modelSpec;

    /**
     * 生产厂家
     */
    @Excel(name = "生产厂家")
    private String manufacturer;

    /**
     * 归属的厂房
     */
    @Excel(name = "归属的厂房")
    private String locationRoomCode;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 逻辑删除标记：0-未删除，1-已删除 */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer isDelete;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setFacilityCode(String facilityCode) {
        this.facilityCode = facilityCode;
    }

    public String getFacilityCode() {
        return facilityCode;
    }

    public void setFacilityName(String facilityName) {
        this.facilityName = facilityName;
    }

    public String getFacilityName() {
        return facilityName;
    }

    public void setFacilityType(String facilityType) {
        this.facilityType = facilityType;
    }

    public String getFacilityType() {
        return facilityType;
    }

    public void setModelSpec(String modelSpec) {
        this.modelSpec = modelSpec;
    }

    public String getModelSpec() {
        return modelSpec;
    }

    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }

    public String getManufacturer() {
        return manufacturer;
    }

    public void setLocationRoomCode(String locationRoomCode) {
        this.locationRoomCode = locationRoomCode;
    }

    public String getLocationRoomCode() {
        return locationRoomCode;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("facilityCode", getFacilityCode())
                .append("facilityName", getFacilityName())
                .append("facilityType", getFacilityType())
                .append("modelSpec", getModelSpec())
                .append("manufacturer", getManufacturer())
                .append("locationRoomCode", getLocationRoomCode())
                .append("createdAt", getCreatedAt())
                .append("isDelete", getIsDelete())
                .toString();
    }
}

